package com.tdkj.model.bbs;

import java.sql.Timestamp;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import static javax.persistence.GenerationType.IDENTITY;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * EjfModeratorLog entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "ejf_moderator_log", catalog = "west")
public class EjfModeratorLog implements java.io.Serializable {

	// Fields

	private Integer logId;
	private String userId;
	private String groupName;
	private String remoteIp;
	private Integer boardId;
	private String boardName;
	private Integer topicId;
	private String topicTitle;
	private Integer replyId;
	private String action;
	private String reason;
	private Timestamp createTime;

	// Constructors

	/** default constructor */
	public EjfModeratorLog() {
	}

	/** minimal constructor */
	public EjfModeratorLog(String userId, String groupName, Integer boardId, String boardName, Integer topicId, String topicTitle, String action, String reason) {
		this.userId = userId;
		this.groupName = groupName;
		this.boardId = boardId;
		this.boardName = boardName;
		this.topicId = topicId;
		this.topicTitle = topicTitle;
		this.action = action;
		this.reason = reason;
	}

	/** full constructor */
	public EjfModeratorLog(String userId, String groupName, String remoteIp, Integer boardId, String boardName, Integer topicId, String topicTitle, Integer replyId, String action, String reason, Timestamp createTime) {
		this.userId = userId;
		this.groupName = groupName;
		this.remoteIp = remoteIp;
		this.boardId = boardId;
		this.boardName = boardName;
		this.topicId = topicId;
		this.topicTitle = topicTitle;
		this.replyId = replyId;
		this.action = action;
		this.reason = reason;
		this.createTime = createTime;
	}

	// Property accessors
	@Id
	@GeneratedValue(strategy = IDENTITY)
	@Column(name = "logID", unique = true, nullable = false)
	public Integer getLogId() {
		return this.logId;
	}

	public void setLogId(Integer logId) {
		this.logId = logId;
	}

	@Column(name = "userID", nullable = false, length = 15)
	public String getUserId() {
		return this.userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	@Column(name = "groupName", nullable = false, length = 15)
	public String getGroupName() {
		return this.groupName;
	}

	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}

	@Column(name = "remoteIP", length = 25)
	public String getRemoteIp() {
		return this.remoteIp;
	}

	public void setRemoteIp(String remoteIp) {
		this.remoteIp = remoteIp;
	}

	@Column(name = "boardID", nullable = false)
	public Integer getBoardId() {
		return this.boardId;
	}

	public void setBoardId(Integer boardId) {
		this.boardId = boardId;
	}

	@Column(name = "boardName", nullable = false, length = 20)
	public String getBoardName() {
		return this.boardName;
	}

	public void setBoardName(String boardName) {
		this.boardName = boardName;
	}

	@Column(name = "topicID", nullable = false)
	public Integer getTopicId() {
		return this.topicId;
	}

	public void setTopicId(Integer topicId) {
		this.topicId = topicId;
	}

	@Column(name = "topicTitle", nullable = false, length = 100)
	public String getTopicTitle() {
		return this.topicTitle;
	}

	public void setTopicTitle(String topicTitle) {
		this.topicTitle = topicTitle;
	}

	@Column(name = "replyID")
	public Integer getReplyId() {
		return this.replyId;
	}

	public void setReplyId(Integer replyId) {
		this.replyId = replyId;
	}

	@Column(name = "action", nullable = false, length = 10)
	public String getAction() {
		return this.action;
	}

	public void setAction(String action) {
		this.action = action;
	}

	@Column(name = "reason", nullable = false, length = 40)
	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	@Column(name = "createTime", length = 19)
	public Timestamp getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(Timestamp createTime) {
		this.createTime = createTime;
	}

}